<template>
  <div>
    <h1>爸爸</h1>
    <!--
    爷传孙 v-bind='$attrs'
    孙传爷 v-on="$listeners"
    -->
    <son v-bind="$attrs" v-on="$listeners"></son>
    <h2>截胡了----{{ grandpaMsg }}</h2>
  </div>
</template>

<script>
import son from "./son.vue"
export default {
  components: {
    son
  },
  props: {
    // 截胡 孙子拿不到
    grandpaMsg: {
      type: Number
    }
  },
  data() {
    return {
      money: 1000
    }
  }
}
</script>

<style lang="scss" scoped></style>